package 作业;

public class eryueershiyi {
    String name;
    int age;
    String classname;
    String Stuid;

    eryueershiyi() {

    }

    eryueershiyi(String name, int age) {
        this.name = name;
        this.age = age;
    }

    eryueershiyi(String name, int age, String classname, String stuid) {
        this.name = name;
        this.age = age;
        this.classname = classname;
        this.Stuid = stuid;

    }

    void study() {
        System.out.println(this.name + "学习");
    }

    void sayHi() {
        System.out.println("大家好，我叫" + this.name + "今年" + this.age + "班级名字" + this.classname+ "学号" + this.Stuid);
    }

    void playwith(String anotherName) {
        System.out.println(this.name + "和" + anotherName + "一起玩");
    }
}




